package com.ferrlo.testLogin;

import java.io.BufferedReader;
import java.io.InputStreamReader;

import org.junit.Test;

import weibo4j.Oauth;
import weibo4j.Weibo;
import weibo4j.model.WeiboException;
import weibo4j.util.BareBonesBrowserLaunch;


public class testWeibo {
	
	
	@Test
	public void demo() throws Exception{
		Oauth oauth = new Oauth();
		BareBonesBrowserLaunch.openURL(oauth.authorize("code"));
		System.out.print("Hit enter when it's done.[Enter]:");
	
	//	System.out.println(oauth.getAccessTokenByCode(code));
	}

}
